﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StrategyPattern
{
    class Program
    {
        static void Main(string[] args)
        {
            double total = 687.33d;
            CashContext csuper = new CashContext("满300返100");
            double totalPrice = csuper.GetResult(total);
            Console.WriteLine("共消费{0}元，满300返100活动后，实际应付{1}元", total, totalPrice);

        }
    }
}
